package com.gxa.service.impl;

import com.gxa.domain.entity.Cashier;
import com.gxa.mapper.CashierMapper;
import com.gxa.service.CashierService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CashierServiceImpl implements CashierService {
    @Autowired
    private CashierMapper cashierMapper;
    @Override
    public Cashier findCashierByBarCode(Long barCode) {
        return cashierMapper.findCashierByBarCode(barCode);
    }

    @Override
    public List<Cashier> findCashierAll() {
        return cashierMapper.findCashierAll();
    }
}
